import {API, DynamicObject, PageParams} from "@/services/typings";
import {addData, deleteById, listData, pageData, updateById} from "@/services/base-request";

export const pageOperLog = (params: PageParams, options?: DynamicObject) => {
  return pageData('/operLog', params, options)
}

export const listOperLog = (params: PageParams, options?: DynamicObject) => {
  return listData('/operLog', params, options)
}
export const addOperLog = (data: API.IOperLog, options?: DynamicObject) => {
  return addData('/operLog', data, options)
}

export const updateOperLog = (data: API.IOperLog, options?: DynamicObject) => {
  return updateById('/operLog', data, options)
}

export const deleteOperLog = (id: string | number, options?: DynamicObject) => {
  return deleteById('/operLog', id, options)
}
